package com.wms.common;

import java.io.Serializable;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;

@Data
public class Response implements Serializable {
    private static final long serialVersionUID = 1634987384947915798L;

    public static final int SUCCESS = 200;

//    public static Long count;



    private int code;
    private String message;
    private Object data;
    private Long total;
    private Object sum;

    public Response(){};

    public Response(Object data) {
        this(200, "成功", data,null,null);
    }

    public Response(int code , String message, Object data,Long total,Object sum){
        this.code = code;
        this.message = message;
        this.data = data;
        this.total = total;
        this.sum = sum;
    }
}
